package containers

import "fmt"

var luquxianMap = make(map[string]float32)

//  字典，映射
func QueryLuquxian() {

	luquxianMap["重庆"] = 670
	luquxianMap["北京"] = 720
	luquxianMap["上海"] = 730
	luquxianMap["长沙"] = 680
	luquxianMap["西安"] = 650

	var address string
	fmt.Println("请输入查询地址")
	fmt.Scanln(&address)
	if luquxianMap[address] == 0 {
		fmt.Println("录取线没查到,该地址暂不支持查询：")
	} else {
		fmt.Println("录取线是：", luquxianMap[address])
	}
	var weekMap = make(map[int]string)
	weekMap[1] = "星期一"
	weekMap[2] = "星期二"
	weekMap[3] = "星期三"
	weekMap[4] = "星期四"
	weekMap[5] = "星期五"
	weekMap[6] = "星期六"
	weekMap[7] = "星期七"
	fmt.Println("编号为2的值是:", weekMap[2])
}
